#ifndef OPERATIONSWIDGET_H
#define OPERATIONSWIDGET_H

#include <QWidget>
#include <QVariantList>

namespace Ui {
class OperationsWidget;
}

class QStandardItemModel;
class FloatDelegate;
class QDate;

class OperationsWidget : public QWidget
{
    Q_OBJECT
    
public:
    OperationsWidget(QWidget *parent = 0);
    ~OperationsWidget();
    void setup();
    void clearAll();
    void setupModel();
    void setupView();
    void setEnabledBtnDel();

    void addLine(const QVariantList &vl);
    void delLine(const int rowNumber);
    
private slots:
    void on_btnAdd_clicked();
    void on_btnDel_clicked();

private:
    Ui::OperationsWidget *ui;
};

#endif // OPERATIONSWIDGET_H
